package me.sdevil507.platform.po.talent_data_transfer.fruit;

import lombok.Data;
import me.sdevil507.supports.jpa.BaseJpaSnowflakeIdAndAuditEntity;
import me.sdevil507.supports.jpa.BaseJpaSnowflakeIdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "nd_fruit_author")
public class NdFruitAuthor extends BaseJpaSnowflakeIdEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 成果id
     */
    @Column
    private Long fruitId;

    /**
     * 作者名称
     */
    @Column
    private String author;

    /**
     * 作者单位
     */
    @Column
    private String job;


    /**
     * 专家id
     */
    @Column
    private Long orgUserId;


    /**
     * 第几作者，排名1，则表示第一作者
     */
    @Column
    private int ranking;

    /**
     * 手机号码
     */
    @Column
    private String phoneNumber;

    /**
     * 是否删除
     */
    @Column
    private Boolean  isDel= false;

    /**
     * 创建时间
     */
    @Column
    private Date createTime = new Date();

    /**
     * 更新时间
     */
    @Column
    private Date updateTime = new Date();

    /**
     * 智库id
     */
    @Column
    private Long orgId;


    /**
     * 著作方式
     */
    @Column
    private String writeType;

    /**
     * 作者数量
     */
    @Column
    private String number;

    /**
     * 是否临时专家
     */
    @Column
    private Boolean  isTemp;

    /**
     * 专家观点
     */
    @Column
    private String viewPoint;
}

